package com.link.base.base.system.dao.mybatis.mapper;

import com.link.base.base.system.model.Period;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 */
public interface PeriodMapper extends BasicMapper<Period> {

    /**
     * 根据自然月查询月期间 Period
     * @param period
     * @return period
     * @throws Exception
     */
    public List<Period> queryByDate(Period period) throws Exception;

    /**
     * 根据日期查询所属月期间 Period
     * @param period
     * @return list
     * @throws Exception
     */
    public List<Period> queryMonthPeriodByDate(Period period) throws Exception;
}
